#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "OLED.h"
#include "Encoder.h"

//对射式红外传感器计次
int16_t Num;
int main(void){
	OLED_Init();
	Encoder_Init();
	OLED_ShowString(1,3,"Hello world!");
	OLED_ShowString(2,1,"Num:");
	while(1){
		Num+=Get_Count();
		OLED_ShowSignedNum(2,5,Num,5);
	}
}
